package com.yami.shop.admin.config;

/**
 * 捕获异常工具类
 * Created by Jason on 2018/11/13.
 */
public class ExceptionUtil {


    /**
     * 检查字符是否为空
     * @param content 参数内容
     * @param errMsg  打印异常信息
     */
    public static void checkEmpty(String content,String errMsg) {
        if (content == null||content.equals("null")||"".equals(content))
            throw new NullPointerException(errMsg);
    }
}
